package com.cn.jinl.dao;

import com.cn.jinl.domain.MeterPower;
import com.cn.jinl.domain.MeterPowerExample;
import java.util.List;

import com.cn.jinl.domain.MeterPowerInit;
import org.apache.ibatis.annotations.Param;

public interface MeterPowerMapper {
    int countByExample(MeterPowerExample example);

    int deleteByExample(MeterPowerExample example);

    int insert(MeterPower record);

    int insertSelective(MeterPower record);

    List<MeterPower> selectByExample(MeterPowerExample example);

    MeterPower selectLastMeterPowerBySn(MeterPower meterPower);

    List<MeterPowerInit> selectLastMeterPower();
    List<MeterPower> selectYearMeterPowers(String year);
    List<MeterPower> selectAllYearMeterPowers(String year);

    MeterPower selectLastOneMeterPowerBySn(String sn);

    int updateByExampleSelective(@Param("record") MeterPower record, @Param("example") MeterPowerExample example);

    int updateByExample(@Param("record") MeterPower record, @Param("example") MeterPowerExample example);
}